package com.kundi.dooradmin.mapper;

import com.kundi.dooradmin.entity.SuccessExample;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

/**
 * Author 赵恒
 * Date 2020/6/19
 */
public interface SuccessExampleMapper extends Mapper<SuccessExample> {
    @Delete("delete from tb_success_example where id = #{id}")
    int deleteById(@Param("id") Integer id);

    @Select("select * from tb_success_example where id = #{id}")
    SuccessExample getExampleById(@Param("id") Integer id);
}
